import getlink from "@/api/getapi.js"
let ComMainM = {
    state:{
        showslist:""
    },
    mutations:{
        UPMAINDATA(state,payload){
            state.showslist=payload
        }
    },
    actions:{
        LINK_COMMAIN_DATA(conshowslist,payload){
            // console.log(context)
            getlink(payload).then((ok)=>{
                console.log(ok.data.showslist,"showslist")
                conshowslist.commit("UPMAINDATA",ok.data.showslist)
            }).catch((err)=>{
                console.log(err)
            })
        }
    }
}

export default ComMainM;

 
